export const resultOption = [
  { value: 0, label: '未评分' },
  { value: 1, label: '评分中' },
  { value: 2, label: '合格' },
  { value: 3, label: '不合格' },
  { value: 4, label: '合格(特批)' },
  { value: 5, label: '不合格(特批)' }
];

export const platformOption = [
  { value: 0, label: '小红书' },
  { value: 1, label: '抖音' },
  { value: 2, label: '微博' },
  { value: 3, label: 'B站' },
  { value: 4, label: '快手' },
  { value: 5, label: '视频号' }
];

export const priceInfoField = {
  '小红书': [
    { name: '次月报备价（图文）', keyword: 'imageTextPrice', indentLabel: true, createIndentLabel: true, parentKey: 'nextMonthReportPrice' },
    { name: '次月报备价（视频）', keyword: 'videoPrice', indentLabel: true, createIndentLabel: true, parentKey: 'nextMonthReportPrice' },
    { name: '次月非报备价（图文）', keyword: 'imageTextPrice', indentLabel: true, createIndentLabel: true, parentKey: 'nextMonthNotReportPrice' },
    { name: '次月非报备价（视频）', keyword: 'videoPrice', indentLabel: true, createIndentLabel: true, parentKey: 'nextMonthNotReportPrice' }
  ],
  '快手': [
    { name: '短视频报价-不含平台费', keyword: 'shortVideoPrice', indentLabel: true, createIndentLabel: true }
  ],
  '抖音': [
    { name: '星图报价1-20s', keyword: 'starMapTwenty', parentKey: 'articlesPrice' },
    { name: '星图报价20-60s', keyword: 'starMapSixty', parentKey: 'articlesPrice', indentLabel: true, createIndentLabel: true },
    { name: '星图报价60s以上', keyword: 'starMapAboveSixty', parentKey: 'articlesPrice', indentLabel: true, createIndentLabel: true }
  ],
  '微博': [
    { name: '非原创直发', keyword: 'publish', parentKey: 'articlesPrice' },
    { name: '非原创转发', keyword: 'forward', parentKey: 'articlesPrice' },
    { name: '原创图文发布', keyword: 'originalContent', parentKey: 'articlesPrice' },
    { name: '原创视频发布', keyword: 'originalVideo', parentKey: 'articlesPrice' }
  ],
  'B站': [
    { name: '定制视频', keyword: 'customVideo', parentKey: 'articlesPrice' },
    { name: '植入视频', keyword: 'implantationVideo', parentKey: 'articlesPrice' },
    { name: '直发动态', keyword: 'publishTrends', parentKey: 'articlesPrice' },
    { name: '转发动态', keyword: 'forwardTrends', parentKey: 'articlesPrice' }
  ],
  '微信': [
    { name: '头条供稿发布价', keyword: 'topFeedPrice', indentLabel: true, parentKey: 'articlesPrice' },
    { name: '头条原创发布价', keyword: 'topOriginPrice', indentLabel: true, parentKey: 'articlesPrice' },
    { name: '次条供稿发布价', keyword: 'nextTopFeedPrice', indentLabel: true, parentKey: 'articlesPrice' },
    { name: '次条原创发布价', keyword: 'nextTopOriginPrice', indentLabel: true, parentKey: 'articlesPrice' }
  ],
  '微信视频号': [
    { name: '直发视频报价（不含链接）', keyword: 'publishVideoNoLinkPrice', indentLabel: true, createIndentLabel: true, parentKey: 'articlesPrice' },
    { name: '直发视频报价（含链接）', keyword: 'publishVideoLinkPrice', indentLabel: true, createIndentLabel: true, parentKey: 'articlesPrice' },
    { name: '直发链接报价（视频为博主日常内容）', keyword: 'publishLinkPrice', indentLabel: true, createIndentLabel: true, parentKey: 'articlesPrice' }
  ],
  '其他': [
    { name: '报备价格', keyword: 'offer' },
    { name: '非报备价格', keyword: 'notReportPrice' }
  ]
};

export function getFields(platformName) {
  if (!platformName) return [];
  return priceInfoField[platformName] || priceInfoField['其他'];
}
